<?php

use yii\db\Schema;
use yii\db\Migration;

class m160704_093715_add_creative_size_list_fields extends Migration
{
    public function up()
    {
        $sql = <<<FINE
alter table {{%creative}} add size_list text comment 'all size_list width*height, width*height' after height;
FINE;

        return $this->execute($sql);
    }

    public function down()
    {
        return $this->dropColumn('{{%creative}}', 'size_list');
    }

    /*
    // Use safeUp/safeDown to run migration code within a transaction
    public function safeUp()
    {
    }

    public function safeDown()
    {
    }
    */
}
